package com.ywd.materials.admin.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * 物资信息实体类
 */
@Accessors(chain = true)
@Data
public class MaterialsGoodsDto implements Serializable {
    /**
     * 物资ID
     */
    @Schema(description = "物资ID,修改必传")
    private Long id;
    /**
     * 物资类型ID
     */
    @NotNull
    @Schema(description = "物资类型ID")
    private Long materialsGoodsTypeId;
    /**
     * 物资名称
     */
    @NotNull
    @Schema(description = "物资名称")
    private String name;
    /**
     * 物资编码
     */
    @Schema(description = "物资编码")
    private String code;
    /**
     * 品牌
     */
    @Schema(description = "品牌")
    private String brand;
    /**
     * 规格
     */
    @NotNull
    @Schema(description = "规格")
    private String specs;
    /**
     * 单位
     */
    @Schema(description = "单位")
    private String unit;
    /**
     * 物资货值
     */
    @Schema(description = "物资货值")
    private String price;
    /**
     * 说明
     */
    @Schema(description = "说明")
    private String info;
    /**
     * 图片
     */
    @Schema(description = "图片")
    private String pic;
    /**
     * 排序
     */
    @Schema(description = "排序")
    private Integer sort;
    /**
     * 添加方式(0=系统添加,1=自定义添加)
     */
    @Schema(description = "添加方式(0=系统添加,1=自定义添加)",hidden = true)
    private String sourceType = "0";
    /**
     * 状态(0=停用,1=正常)
     */
    @Schema(description = "状态(0=停用,1=正常)")
    private Integer status = 1;
    /**
     * 版本号
     */
    @Schema(description = "版本号")
    private Integer version;
    /**
     * 创建者
     */
    @Schema(description = "创建者",hidden = true)
    private Long creator;
    /**
     * 更新者
     */
    @Schema(description = "更新者",hidden = true)
    private Long updater;

}